package main

import (
	"MyCrypto/dca"
	"fmt"
)

func main() {
	//text := []uint32{0x01234567, 0x89ABCDEF, 0xFEDCBA98, 0x76543210}
	//key := []uint32{0x01234567, 0x89ABCDEF, 0xFEDCBA98, 0x76543210}
	//s := hex.EncodeToString(dca.SM4(text, key))
	//fmt.Println(s)
	//fmt.Printf("%X\n", text)

	//text := "123, 木头人!"
	//key := "hello, world"
	//
	//// 得到string类型的密文
	//cipher := dca.CryptoSM4ToString(text, key)
	//
	//// 解密得到明文
	////res == text
	//res := dca.DecryptSM4ToString(cipher, key)
	//
	//fmt.Println("密文:", cipher, "明文:", res)

	//fmt.Println(dca.NonlinearTrans(0xD8237E66))
	//fmt.Println(dca.NonlinearTransImpro(0xD8237E66))
	fmt.Println(dca.SM3([]byte("123456")))
}
